Readme for: "(Un)Intended Effects of a Teacher Bonus Tournament"
Authors: Joniada Milla
Updated: April 18, 2025

This document provides a guide to replicate the results and analyses in Milla (2025) "(Un)Intended Effects of a Teacher Bonus Tournament". See the paper for details on data and variable construction. The files are divided into: code, data, and output folders. Please direct any questions about these files to Joniada Milla at joniada.milla@smu.ca.

Software used: Stata/SE 18.0 for Mac (Apple Silicon). 


---------------------------------------------------------------------------------
TABLES AND FIGURES CODE:
---------------------------------------------------------------------------------

Executes the entire replication code:
|       000 main.do

The following are the do files for the student score regressions. Because the data are confidential I can not share the dataset. Instead I am sharing the do files to derive the data. 
|	cleanup_simce_b4_2007.do
| 	cleanup_simce_b4_2009.do
|	cleanup_simce_b4_2011.do
|	cleanup_simce_b4_2013.do
|	cleanup_simce_b6_2013.do
|	cleanup_simce_b6_2015.do
|	cleanup_simce_b8_2011.do
|	cleanup_simce_b8_2013.do
|	cleanup_simce_b8_2015.do
|	cleanup_snedforsimce.do
|	cleanup_stacked_simce_6b4b_merged_sned.do
|	cleanup_stacked_simce_8b4b_merged_sned.do

The following is the do file that creates the variables for the teacher data that have been organized into a panel dataset and linked to SNED data. The data are publicly available and included with the do files. 
|	cleanup_t_s_est_samples.do

The following do files generate the respective tables and figures indicated in the file names for the SNED index that is the assignment variable.
|	index_internalvalidity_T3+Fig1-4.do
|	index_HGsumstats_TA3.do


The following do files generate the respective tables and figures indicated in the file names for the student analysis.
| 	post_6b4_bwsensitivity_FigA9.do
|	post_6b4_extval_TA11.do
|	post_6b4_graphs_FigA6.do
|	post_6b4_incumbent_TA7.do
|	post_6b4_main_T5.do
|	post_6b4_sorting_TA9.do
|	pre_6b4_main_FigA3.do
|	pre_6b4_main_TA4.do
|	sumstats_6b4_TA1.do

|	post_8b4_bwsensitivity_FigA10.do
|	post_8b4_extval_TA10.do
|	post_8b4_graphs_FigA7.do
|	post_8b4_incumbent_TA6.do
|	post_8b4_main_T4.do
|	post_8b4_sorting_TA8.do
|	pre_8b4_graphs_FigA4.do
|	pre_8b4_main_TA4.do
|	sumstats_8b4_TA1.do


The following do files generate the respective tables and figures indicated in the file names for the teacher analysis.
|	post_s_bwsensitivity_FigA12.do
|	post_s_extval_TA13.do
|	post_s_main_T8.do
|	post_s_winagain_T6.do

|	post_t_bwsensitivity_FigA11.do
|	post_t_extval_TA12.do
|	post_t_main_T7.do
|	post_t_s_graphs_FigA8.do

|	pre_t_s_graphs_FigA5.do
|	pre_t_s_main_TA5.do
|	sumstats_t_s_TA2.do


---------------------------------------------------------------------------------
DATA FILES:
---------------------------------------------------------------------------------
         
Teacher data at teacher level:
|	tlvl_fin.dta

Teacher data at school level:
|	slvl_fin.dta


------------------------------------------------------------------------------end.

